/*
 * $Id: $
 */
package org.rcgwt.client.ui.grid.internal.js;

import java.util.HashMap;
import java.util.Map;

/**
 * 
 * @author Olivier Oeuillot (latest modification by $Author: $)
 * @version $Revision: $ $Date: $
 */
public class IntMap<T> {
    private final Map<Integer, T> map = new HashMap<Integer, T>();

    public IntSet keySet() {

        return new IntSet(map.keySet());
    }

    public T put(int key, T value) {

        return map.put(new Integer(key), value);
    }

    public T get(int key) {
        return map.get(new Integer(key));
    }

    public void clear() {
        map.clear();
    }

    public T remove(int key) {
        return map.remove(new Integer(key));
    }

    public boolean isEmpty() {
        return map.isEmpty();
    }
}
